Exemplo n.º 1
0
        public object DeductionIdNotExists(Guid deductionId)
        {
            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2008;
            rcam.ResponseMessage = "Deduction ID (" + deductionId + " does not exists)";
            return(rcam);
        }
Exemplo n.º 2
0
        public object IncrementIdNotExists(Guid incrementId)
        {
            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2008;
            rcam.ResponseMessage = "Increment ID " + incrementId + " does not exists)";
            return(rcam);
        }
Exemplo n.º 3
0
        public object BusinessUserIdNotExists(Guid businessUserId)
        {
            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2006;
            rcam.ResponseMessage = "Business User ID (" + businessUserId + " does not exists)";
            return(rcam);
        }
Exemplo n.º 4
0
        public object UserIdNotExists(Guid userId)
        {
            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2005;
            rcam.ResponseMessage = "user ID (" + userId + " does not exists)";
            return(rcam);
        }
Exemplo n.º 5
0
        public object NoRecordFound()
        {
            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2004;
            rcam.ResponseMessage = "No Record Found";
            return(rcam);
        }
Exemplo n.º 6
0
        public object SalaryIdNotExists(Guid salaryId)
        {
            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2003;
            rcam.ResponseMessage = "Salary ID (" + salaryId + " does not exists)";
            return(rcam);
        }
Exemplo n.º 7
0
        public object EmployeeIdNotExists(Guid employeeId)
        {
            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2002;
            rcam.ResponseMessage = "Employee ID (" + employeeId + " does not exists)";
            return(rcam);
        }
Exemplo n.º 8
0
        public object AttendanceIdNotExists(Guid attendanceId)
        {
            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2009;
            rcam.ResponseMessage = "Attendance ID " + attendanceId + " does not exists)";
            return(rcam);
        }
Exemplo n.º 9
0
        public object TheseEmployeesIdsNotFound(Guid[] employeeIds)
        {
            string[] stringArray = Array.ConvertAll(employeeIds, x => x.ToString()); //converting Guid array to string array
            //now converting string array to strings
            string arrayInOneString = string.Join(" , ", stringArray);

            ResponseCodesAndMessages rcam = new ResponseCodesAndMessages();

            rcam.ResponseCode    = 2007;
            rcam.ResponseMessage = "Employee Ids (" + arrayInOneString + " ) does not exists)";
            return(rcam);
        }