Find Jobs
Hire Freelancers

Variable declaration error CSO168

$2-8 AUD / hour

Completed
Posted about 7 years ago

$2-8 AUD / hour

Action is required to resolve the error that reads: CSO 168 the variable “e” is declared but never used. Attached is txt file for you see. IDE is Visual Studio 2015 ______________________________________ using AutoMapper; using System; using [login to view URL]; using [login to view URL]; using [login to view URL]; using [login to view URL]; namespace [login to view URL] { public class ProductController : BaseController { public ProductController() { [login to view URL](cfg => { [login to view URL]<Product, [login to view URL]>(); [login to view URL]<[login to view URL], Product>(); }); [login to view URL] = [login to view URL]; } // GET: Admin/Product public ActionResult Index() { var products = [login to view URL]; var model = [login to view URL]<IEnumerable<Product>, IEnumerable<[login to view URL]>>(products); return View(model); } private [login to view URL] _getProduct(int id) { var product = [login to view URL](p => [login to view URL] == id); var model = [login to view URL]<Product, [login to view URL]>(product); return model; } // GET: Admin/Product/Details/5 public ActionResult Details(int id) { return View(_getProduct(id)); } // GET: Admin/Product/Create public ActionResult Create() { return View(); } // POST: Admin/Product/Create [HttpPost] public ActionResult Create([login to view URL] model) { try { // TODO: Add insert logic here var product = new Product { PName = [login to view URL], Brand = [login to view URL], Category = [login to view URL], Description = [login to view URL], ROL = [login to view URL], SID = [login to view URL], UnitPrice = [login to view URL], UnitsInStock = [login to view URL] }; [login to view URL](product); [login to view URL](); return RedirectToAction("Index"); } catch (Exception e) { return View(model); } } // GET: Admin/Product/Edit/5 public ActionResult Edit(int id) { return View(_getProduct(id)); } // POST: Admin/Product/Edit/5 [HttpPost] public ActionResult Edit(int id, [login to view URL] model) { try { // TODO: Add update logic here Product p = [login to view URL](pr => [login to view URL] == [login to view URL]); [login to view URL] = [login to view URL]; [login to view URL] = [login to view URL]; [login to view URL] = [login to view URL]; [login to view URL] = [login to view URL]; [login to view URL] = [login to view URL]; [login to view URL] = [login to view URL]; [login to view URL](); return RedirectToAction("Index"); } catch (Exception e) { return View(model); } } // GET: Admin/Product/Delete/5 public ActionResult Delete(int id) { var product = [login to view URL](p => [login to view URL] == id); return RedirectToAction("Index"); } } }
Project ID: 13316061

About the project

8 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Dear Sir. I am developing web applications in entity framework, C# and .NET. I have 1 year experience working as .NET developer in the Software industry. I am interested in this job. Kindly give me a chance and I will prove myself. I will fix the error and guide you about it whatever you want. Looking forward to hear from you soon.
$2 AUD in 40 days
0.0 (0 reviews)
0.0
0.0
8 freelancers are bidding on average $9 AUD/hour for this job
User Avatar
Hello. I will help you on this. I hone through the code. Thanks for contacting me. Regards, Sheik Mubarak S
$7 AUD in 1 day
5.0 (30 reviews)
4.9
4.9
User Avatar
I have worked on similar projects to what you are looking for, and I am confident I can exceed your expectations.I can complete your project on time and within your budget.I can assure you that if you work with me once, you will always work with me for these kind of projects.
$30 AUD in 3 days
5.0 (14 reviews)
4.5
4.5
User Avatar
Hi,I'm very very interested in your job. I have enough experience for this job. I wanna work for u. If u award me, i can finish this job without fail. Please send me message. Thanks...
$5 AUD in 40 days
5.0 (2 reviews)
4.0
4.0
User Avatar
Hello My name is shashank The requirements you provided are exactly what I am using all days every day, I would even add some last technology available in the most recent releases of VS to build cross-platform applications. Right now, I am working in a small team and my duties include design/architecture/business analyses and coding of most critical app algorithms. I like programming and feel that there is nothing I can do. It is pleasure for me to use all my knowledge and learn more in programming field. I have experience from developing small web sites to big enterprise ERP solutions. My favorite language is C#, but I also use VB.Net and C++ for critical algorithms. I worked with almost all DBMS from MySQL to Oracle, from single server DB to cloud and distributed customized shards. If this is project real requires so many skills, let me join it and lead it to success. My regular rate is $3/h and I will be available in a month. If you think that the rate is too high, let me know and to discuss it - I am sure that I can explain why or find a compromise. Looking forward to hear from you, sir. Have a nice day!
$4 AUD in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, Sir! As I am a senior c# developer and debugging expert ,I think I'm a good fit for your project and it is no problem for me. if you hire me, i will start working for you. if you don't mind, we can discuss more detail over chat. regards! kkokko
$5 AUD in 40 days
0.0 (1 review)
0.0
0.0

About the client

Flag of AUSTRALIA
Haymarket, Australia
4.7
5
Payment method verified
Member since Jan 11, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.