public Boolean Delete(WorkLocation workLocation) { if (workLocation == null || !ModelState.IsValid) { throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request"); } workLocationService.DeleteWorkLocation(workLocation.WorkLocationId); return(true); }