Esempio n. 1
0
        public HttpResponseMessage GetChores(int ChoreListId)
        {
            try
            {
                TinyMapper.Bind <List <Chore>, List <_Chore> >();
                List <_Chore> Chores = TinyMapper.Map <List <_Chore> >(ChoreRepository.GetChores(ChoreListId));

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