コード例 #1
0
        public BaseListResponse <SPGetSeniorLeaderStaff_Result> GetSeniorLeaderStaff(int departmentId)
        {
            var response = new BaseListResponse <SPGetSeniorLeaderStaff_Result>();

            try
            {
                response.IsSuccess = true;
                response.Data      = _staffRepository.GetSeniorLeaderStaff(departmentId);
            }
            catch (Exception ex)
            {
                response.IsSuccess = false;
                response.Message   = "Error: " + ex.Message + " StackTrace: " + ex.StackTrace;
            }
            return(response);
        }