Exemple #1
0
 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);
 }
Exemple #2
0
        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));
        }