Exemplo n.º 1
0
        public static OdooAPI getConnectionDefault(ConnectionApiOdooDTO model)
        {
            OdooAPI odooApi = default;

            if (!isNull(model))
            {
                var credentials = new OdooConnectionCredentials(model.urlApi, model.nameDb, model.email, model.password);
                odooApi = new OdooAPI(credentials);
            }
            return(odooApi);
        }
 public ActionResultApi <ConnectionApiOdooDTO> edit([FromBody] ConnectionApiOdooDTO model)
 {
     return(new ActionResultApi <ConnectionApiOdooDTO>(HttpStatusCode.OK, connectionApiOdooDAL.edit(model), Request));
 }
 public ConnectionApiOdooDTO edit(ConnectionApiOdooDTO model)
 {
     return((ConnectionApiOdooDTO)connectionApiOdooRepository.edit(model));
 }
 public ConnectionApiOdooDTO create(ConnectionApiOdooDTO model)
 {
     return((ConnectionApiOdooDTO)connectionApiOdooRepository.create(model));
 }