コード例 #1
0
        public override Task <Empty> DeleteSystemCountryCode(SystemCountryCodePayLoad request, ServerCallContext context)
        {
            SystemCountryCodePoco[] pocos = new SystemCountryCodePoco[] { new SystemCountryCodePoco()
                                                                          {
                                                                              Code = request.Code,
                                                                              Name = request.Name
                                                                          } };
            _logic.Delete(pocos);

            return(new Task <Empty>(() => new Empty()));
        }
        public override Task <Empty> UpdateSystemCountryCode(SystemCountryCodePayLoad request, ServerCallContext context)
        {
            SystemCountryCodePoco poco = new SystemCountryCodePoco()
            {
                Code = request.Code,
                Name = request.Name
            };

            _logic.Update(new SystemCountryCodePoco[] { poco });

            return(null);
        }