public async Task <PostOffice> SavePostOffice(PostOffice postOffice)
        {
            if (postOffice.Id == 0)
            {
                _context.PostOffice.Add(postOffice);
            }
            else
            {
                PostOffice pos = _context.PostOffice.Find(postOffice.Id);

                if (pos != null)
                {
                    //Update that PostOffice
                    pos.PostOfficeName  = postOffice.PostOfficeName;
                    pos.PoliceStationId = postOffice.PoliceStationId;
                    _context.PostOffice.Update(pos);
                }
            }
            try
            {
                await _context.SaveChangesAsync();

                return(postOffice);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public async Task <PostOffice> DeletePostOffice(int id)
        {
            PostOffice pos = _context.PostOffice.Find(id);

            if (pos != null)
            {
                _context.PostOffice.Remove(pos);
            }
            try
            {
                await _context.SaveChangesAsync();

                return(pos);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }