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