Ejemplo n.º 1
0
        /// <summary>
        /// Creatd by: VXKHANH
        /// Created date: 26/3/2021
        /// Lấy khoản thu theo tên khoản thu
        /// </summary>
        /// <param name="feeName">Tên khoản thu</param>
        /// <returns>Đối tượng khoản thu</returns>
        public ServiceResult GetFeeByFeeName(string feeName)
        {
            var fee = feeRepository.GetFeeByFeeName(feeName);

            if (fee != null)
            {
                serviceResult.Data = fee;
                serviceResult.Code = MISACode.Success;
            }
            else
            {
                serviceResult.Data = null;
                serviceResult.Msg  = Properties.Resources.ErrorMsg_CannotFindData;
                serviceResult.Code = MISACode.NoContent;
            }
            return(serviceResult);
        }