func (c *GroupController) Show(ctx *app.ShowGroupContext) error {
	dataStore := &dal.DataStore{}
	dataStore.GetSession()
	defer dataStore.Close()
	dc := dal.NewDalGroup(dataStore)
	uuid, err := helpers.DecodeUUID(ctx.GroupID)
	if err != nil {
		return ctx.NotFound()
	}
	group, err := dc.Fetch(uuid)
	if helpers.IsNotFoundError(err) {
		return ctx.NotFound()
	} else if err != nil {
		ctx.ResponseData.Service.LogError("InternalServerError", "req_id", middleware.ContextRequestID(ctx), "ctrl", "Group", "action", "Show", ctx.RequestData.Request.Method, ctx.RequestData.Request.URL, "databaseError", err.Error())
		return ctx.InternalServerError()
	}
	res, _ := factory.CreateGroup(group)
	helpers.LastModified(ctx.ResponseData, group.Last_Modified)
	if ctx.IfModifiedSince != nil {
		if !helpers.IsModified(*ctx.IfModifiedSince, group.Last_Modified) {
			return ctx.NotModified()
		}
	}
	return ctx.OK(res)
}
Show runs the show action.
package main
import (
	"github.com/GwentAPI/gwentapi/app"
	"github.com/GwentAPI/gwentapi/dataLayer/dal"
	"github.com/GwentAPI/gwentapi/dataLayer/factory"
	"github.com/GwentAPI/gwentapi/helpers"
	"github.com/goadesign/goa"
	"github.com/goadesign/goa/middleware"
	"time"
)
type GroupController struct {
	*goa.Controller
}
func NewGroupController(service *goa.Service) *GroupController {
	return &GroupController{Controller: service.NewController("GroupController")}
}
func (c *GroupController) List(ctx *app.ListGroupContext) error {
	dataStore := &dal.DataStore{}
	dataStore.GetSession()
	defer dataStore.Close()
	dc := dal.NewDalGroup(dataStore)
	groups, err := dc.FetchAll()
	if err != nil {
		ctx.ResponseData.Service.LogError("InternalServerError", "req_id", middleware.ContextRequestID(ctx), "ctrl", "Group", "action", "List", ctx.RequestData.Request.Method, ctx.RequestData.Request.URL, "databaseError", err.Error())
		return ctx.InternalServerError()
	}
	res := make(app.GwentapiGroupCollection, len(*groups))
	lastModified := time.Time{}
	for i, group := range *groups {
		g, _ := factory.CreateGroup(&group)
		if lastModified.Before(group.Last_Modified) {
			lastModified = group.Last_Modified
		}
		res[i] = g
	}
	helpers.LastModified(ctx.ResponseData, lastModified)
	if ctx.IfModifiedSince != nil {
		if !helpers.IsModified(*ctx.IfModifiedSince, lastModified) {
			return ctx.NotModified()
		}
	}
	return ctx.OK(res)
}