public object Delete(Todos request) { ApiUser hdUser = request.ApiUser; Guid todoId; if (Guid.TryParse(request.id, out todoId)) { bigWebApps.bigWebDesk.Data.ToDo.DeleteToDoItem(hdUser.OrganizationId, hdUser.DepartmentId, todoId.ToString()); return new HttpResult("", HttpStatusCode.OK); } return new HttpResult("", HttpStatusCode.NotFound); }
public object Delete(Todos request) { ApiUser hdUser = request.ApiUser; Guid todoId; if (Guid.TryParse(request.id, out todoId)) { bigWebApps.bigWebDesk.Data.ToDo.DeleteToDoItem(hdUser.OrganizationId, hdUser.DepartmentId, todoId.ToString()); return(new HttpResult("", HttpStatusCode.OK)); } return(new HttpResult("", HttpStatusCode.NotFound)); }