Esempio n. 1
0
 /// <summary>
 /// Delete a room in the database.
 /// </summary>
 /// <param name="p_id">ID of the room.</param>
 /// <returns>The deleted Roomobject, or NULL.</returns>
 public HttpResponseMessage Delete([FromUri] int p_id)
 {
     try
     {
         return(Request.CreateResponse(HttpStatusCode.OK, _roomService.DeleteById(p_id)));
     }
     catch (Exception ex)
     {
         return(HandleGeneralError(ex));
     }
 }