Category : c#

Suppose a schema contains the following entity and attributes: i. User A. id (biginteger), first name(varchar), last name(varchar), contact number(varchar), gen- der(char), dob(date), status(char) ii. Products A. product id(varchar), product name(varchar), quantity(integer), description(text), man- ufacture(date), expire(date), price(decimal) iii. Carts A. cart id(varchar), product id(varchar), user id(varchar), quantity(integer), total(decimal) iv. Checkouts A. ckout id(varchar), cart id(varchar), ..

Read more

Suppose a schema contains the following entity and attributes: i. User A. id (biginteger), first name(varchar), last name(varchar), contact number(varchar), gen- der(char), dob(date), status(char) ii. Products A. product id(varchar), product name(varchar), quantity(integer), description(text), man- ufacture(date), expire(date), price(decimal) iii. Carts A. cart id(varchar), product id(varchar), user id(varchar), quantity(integer), total(decimal) iv. Checkouts A. ckout id(varchar), cart id(varchar), ..

Read more

I am looking to create some sort of a function that would send Laravel notifications to C# application. The idea is that whenever a user purchases someone, an administrator is then notified by receiving a notification through a C# application that they would run on their PC. However, at the moment the only way I ..

Read more

We have an application (C#) that up till today has worked fine. It communicates with a laravel website to manage the sites data. So there are some validation points that occur, the application does checks with out SSO provider for authentication. Then it passes some of the user’s information over to the site so the ..

Read more

I’m using a key pair generated by phpseclib and then I use it to encrypt in C# a message and decrypt in PHP. The public key is: —–BEGIN PUBLIC KEY—– MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvh4OvlS5+7Skk5Nij296 rDAKQsxZrz+gV/MInvWqe/SAOlOf8vqs6xJsn7sd523X8m+b0Kd751UbeeDQRGjC mbQc9iwQHUFrNa0bSVnpyoc27K+cuxNdtoPG1XXRCFLKKqVJKSyB5ZPu+oQr+OIo 6zYhU5jfCEYbpzPdyYqfDGJPpJv/r8F11MCBrdbvD5Z42ysTDqSxFGIfROWtDOP5 ShSNcVGRQYfX3E/v8j+qy0yu2PD/W1UqNd3m6TTkUj/u1XukUMWp+tfXEdEp7IEU askvGnBfHgJcsBp2c6kT9WxIU0ai4G8mo/2OsHprw42PBWLcJwfUeUgY3itSczni WQIDAQAB —–END PUBLIC KEY—– The conversion to XML is done via https://superdry.apphb.com/tools/online-rsa-key-converter Here is how the message is encrypted ..

Read more

Here is my Laravel code that accept file and save it to folder, this code is simplified. public function store1(Request $request) { $validator = Validator::make($request->all(), [‘file’ => ‘required|mimes:doc,docx,pdf,txt,mdb’, ]); if ($validator->fails()) { return response()->json([‘error’=>$validator->errors()], 401); } if ($files = $request->file(‘file’)) { $file = $request->file->store(‘public/documents’); return response(‘ok’); } } And Here is My C# Code private ..

Read more