예제 #1
0
        /// <see cref="IConcertService.SaveConcertProgramm(ConcertProgrammModel)"/>
        public ServiceResponce SaveConcertProgramm(ConcertProgrammModel model)
        {
            var succes = ServiceResponce.FromSuccess().Result("Concert programm save complete");
            var error  = ServiceResponce.FromFailed().Result($"Error save concert programm");
            var res    = _concertRepository.AddConcertProgramm(
                ConcertModelHelper.GetProgramm(model));

            if (res != null)
            {
                succes.Add("ProgrammId", res.Id);
            }
            return(res != null ? succes : error);
        }