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); }
public async Task <ResultPT> GetAsync() { ResultPT result; using (User_MasterBAL User_MasterBAL = new User_MasterBAL()) { result = await User_MasterBAL.GetAllAsync(); } return(result); }
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); }