Beispiel #1
0
 public IActionResult MoveOut([FromBody] MoveInRequest request)
 {
     try
     {
         this.handler.MoveOut(request.OwnerID, request.Token, request.EstateID);
         return(Ok());
     }catch (Exception e)
     {
         var err = new ErrorResponse();
         err.Message = e.Message;
         return(Unauthorized(err));
     }
 }
Beispiel #2
0
 public IActionResult MoveIn([FromBody] MoveInRequest Request)
 {
     try
     {
         this.handler.MoveIn(Request.OwnerID, Request.Token, Request.UserID, Request.EstateID);
         return(Ok());
     }catch (Exception e)
     {
         var err = new ErrorResponse();
         err.Message = e.Message;
         return(NotFound(e));
     }
 }