public static bool EditTask(tbl_UserTask model) { if (model.ID <= 0) { return(DALUserPermission.AddTask(model)); } else { return(DALUserPermission.UpdateTask(model)); } }