示例#1
0
        public async Task <ResultPT> GetAsync()
        {
            ResultPT result;

            using (Profile_MasterBAL profile_MasterBAL = new Profile_MasterBAL()) {
                result = await profile_MasterBAL.GetAllAsync();
            }
            return(result);
        }
示例#2
0
        public async Task <ResultPT> DeleteAsync(int id)
        {
            ResultPT result;

            using (Profile_MasterBAL profile_MasterBAL = new Profile_MasterBAL())
            {
                result = await profile_MasterBAL.DeleteAsync(id);
            }
            return(result);
        }
示例#3
0
        public async Task <ResultPT> PutAsync(int id, [FromBody] Profile_MasterDTO value)
        {
            ResultPT result = null;

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