Esempio n. 1
0
 public HttpResponseMessage AddNewNotification(int fromEmpId, int toEmpId, string type, string content)
 {
     try
     {
         NotificationBL.AddNewNotification(fromEmpId, toEmpId, type, content);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch (Exception e)
     {
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, e.Message));
     }
 }