Example #1
0
        public static Status StatusSave(Status status)
        {
            if (!status.IsValid)
            {
                return(status);
            }

            Status result;

            if (status.IsNew)
            {
                result = StatusService.StatusInsert(status);
            }
            else
            {
                result = StatusService.StatusUpdate(status);
            }

            return(result);
        }
Example #2
0
 public static bool StatusDelete(int statusId)
 {
     return(StatusService.StatusDelete(
                StatusService.StatusFetch(statusId)));
 }
Example #3
0
 public static StatusInfoList StatusFetchInfoList()
 {
     return(StatusService.StatusFetchInfoList(
                new StatusCriteria()));
 }