Пример #1
0
        public HttpResponseMessage GetRotatioinIntervals(int ChoreListId)
        {
            try
            {
                TinyMapper.Bind <List <RotationInterval>, List <_RotationInterval> >();
                var RotationIntervals = TinyMapper.Map <List <_RotationInterval> >(ChoreRepository.GetRotationIntervals(ChoreListId));

                return(OKResponse(RotationIntervals));
            }
            catch (Exception ex)
            {
                return(ErrorResponse(ex));
            }
        }