public static HttpResponseMessage SoftDeleteLocation(int locationId, bool isOpen) { try { int val = LocationDal.SoftDeleteLocation(locationId, isOpen); return(new HttpResponseMessage(HttpStatusCode.OK)); } catch (Exception ex) { Console.WriteLine("EXCEPTION: " + ex); return(new HttpResponseMessage(HttpStatusCode.BadRequest)); } }