public IHttpActionResult UpdateTask(DataLayer.Tasks t)
 {
     try
     {
         taskBL.UpdateTask(t);
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
     return(StatusCode(HttpStatusCode.OK));
 }
        public IHttpActionResult DeleteTask(DataLayer.Tasks t)
        {
            try
            {
                taskBL.DeleteTask(t);
            }
            catch
            {
                return(StatusCode(HttpStatusCode.BadRequest));
            }

            return(StatusCode(HttpStatusCode.OK));
        }