public IHttpActionResult DeleteAll(string items) { if (!string.IsNullOrEmpty(items)) { int rowsAffected = 0; try { rowsAffected = _shiftService.DeleteAll(items); } catch (LogicalException ex) { return(BadRequest(ex.Message)); } catch { return(BadRequest(AppSettings.INTERNAL_SERVER_ERROR_MESSAGE)); } return(Ok(new { rowsAffected })); } return(BadRequest(AppSettings.BAD_REQUEST_ERROR_MESSAGE)); }