Example #1
0
        /// <see cref="IConcertService.SaveGroup"/>
        public ServiceResponce SaveGroup(ActorGroupModel model)
        {
            var res      = _concertRepository.SaveGroup(ConcertModelHelper.GetActorGroup(model));
            var response = res != null?ServiceResponce
                           .FromSuccess()
                           .Result("Actor group save") :
                               ServiceResponce
                               .FromFailed()
                               .Result("Error save actor group");

            if (res != null)
            {
                response.Add("GroupId", res.Id);
            }
            return(response);
        }