コード例 #1
0
 public Response <string> GenerateProductCode(string productName, int company)
 {
     if (!_isLogged())
     {
         return(CreateLoginRequired <string>());
     }
     if (CheckPersonCompany(company, manager.GetCompany))
     {
         CreateResponse(default(string), ResponseCode.INVALID_PERSON);
     }
     return(CreateResponse(manager.GenerateProductCode(productName, company)));
 }