Example #1
0
        public async Task <Response> PostMasterProvider(MasterProvider citizen)
        {
            await _context.SaveChangesAsync();

            return(new Response {
                Message = "Added sucefully"
            });
        }
Example #2
0
        public async Task <Response> PutMasterProvider(MasterProvider masterProvider)
        {
            _context.Entry(masterProvider).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(new Response {
                Message = "Information modified sucefully"
            });
        }