public ResponseAPIModel <ProductModel> GetSlugsSum(int length, int width, decimal radius, decimal edgeLength, decimal edgeWidth, decimal minDistanceItem) { ResponseAPIModel <ProductModel> user = new ResponseAPIModel <ProductModel>(); try { user = GetResponseFromWebRequest <ResponseAPIModel <ProductModel> >(WebServiceURIHelper.GetSlugsSum(length, width, radius, edgeLength, edgeWidth, minDistanceItem), "get"); } catch (Exception ex) { user.ValidationErrorAppSide = ConcatenateExceptionMessage(ex); } return(user); }
public ResponseAPIModel <UserModel> SignIn(string username, string password) { ResponseAPIModel <UserModel> user = new ResponseAPIModel <UserModel>(); try { user = GetResponseFromWebRequest <ResponseAPIModel <UserModel> >(WebServiceURIHelper.SignIn(username, password), "get"); } catch (Exception ex) { user.ValidationErrorAppSide = ConcatenateExceptionMessage(ex); } return(user); }
public ResponseAPIModel <List <ProductModel> > GetProducts() { ResponseAPIModel <List <ProductModel> > user = new ResponseAPIModel <List <ProductModel> >(); try { user = GetResponseFromWebRequest <ResponseAPIModel <List <ProductModel> > >(WebServiceURIHelper.GetProducts(), "get"); } catch (Exception ex) { user.ValidationErrorAppSide = ConcatenateExceptionMessage(ex); } return(user); }