예제 #1
0
 public HttpResponseMessage PatchUser(Int32 userId, PatchRequest<UserDto> patchRequest)
 {
     return GetUsersFromCache()
         .Bind(users => GetUserById(userId)
             .Bind(user => patchRequest.Patch(user))
             .Let(patchResult => UpdateUserCollection(users)))
         .ToHttpResponseMessage(Request, HttpStatusCode.NoContent);
 }