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); }