Esempio n. 1
0
        public void Edit(long kanbanDetailId, [FromBody] Frapid.Config.Entities.KanbanDetail kanbanDetail)
        {
            if (kanbanDetail == null)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed));
            }

            try
            {
                this.KanbanDetailRepository.Update(kanbanDetail, kanbanDetailId);
            }
            catch (UnauthorizedException)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden));
            }
            catch (DataAccessException ex)
            {
                throw new HttpResponseException(new HttpResponseMessage
                {
                    Content    = new StringContent(ex.Message),
                    StatusCode = HttpStatusCode.InternalServerError
                });
            }
#if !DEBUG
            catch
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError));
            }
#endif
        }
Esempio n. 2
0
 public void Last()
 {
     Frapid.Config.Entities.KanbanDetail kanbanDetail = Fixture().GetLast();
     Assert.NotNull(kanbanDetail);
 }
Esempio n. 3
0
 public void Previous()
 {
     Frapid.Config.Entities.KanbanDetail kanbanDetail = Fixture().GetPrevious(0);
     Assert.NotNull(kanbanDetail);
 }