Epiworx.Business.HourRepository.HourFetch C# (CSharp) Method

HourFetch() public static method

public static HourFetch ( int hourId ) : Hour
hourId int
return Hour
        public static Hour HourFetch(int hourId)
        {
            var result = Hour.FetchHour(
                new HourDataCriteria
                {
                    HourId = hourId
                });

            result.Auditor = new HourAuditor(result.Clone());

            return result;
        }

Usage Example

 public static bool HourDelete(int hourId)
 {
     return(HourRepository.HourDelete(
                HourRepository.HourFetch(hourId)));
 }