Example #1
0
        public async Task <ResultPT> DeleteAsync(int id)
        {
            ResultPT result;

            using (User_MasterBAL User_MasterBAL = new User_MasterBAL())
            {
                result = await User_MasterBAL.DeleteAsync(id);
            }
            return(result);
        }
Example #2
0
        public async Task <ResultPT> GetAsync()
        {
            ResultPT result;

            using (User_MasterBAL User_MasterBAL = new User_MasterBAL())
            {
                result = await User_MasterBAL.GetAllAsync();
            }
            return(result);
        }
Example #3
0
        public async Task <ResultPT> PutAsync(int id, [FromBody] User_MasterDTO value)
        {
            ResultPT result = null;

            if (ModelState.IsValid)
            {
                using (User_MasterBAL User_MasterBAL = new User_MasterBAL())
                {
                    result = await User_MasterBAL.UpdateAsync(value);
                }
            }
            return(result);
        }