public async Task <Response> PostMasterProvider(MasterProvider citizen) { await _context.SaveChangesAsync(); return(new Response { Message = "Added sucefully" }); }
public async Task <Response> PutMasterProvider(MasterProvider masterProvider) { _context.Entry(masterProvider).State = EntityState.Modified; await _context.SaveChangesAsync(); return(new Response { Message = "Information modified sucefully" }); }