Find Jobs
Hire Freelancers

Fix simple problem in C# Web API

$10-30 USD

Cerrado
Publicado hace más de 7 años

$10-30 USD

Pagado a la entrega
Im new to Web Api. I need help with creating a simple RESTful API (with Web api). I want to return blog posts by Id and by blog posts by category. But im getting this error: "'PostController' already defines a member called 'Get' with the same parameter types" How shall I solve this? Perhaps by attribute routing? Send me code how to solve this as per best practice. BELOW IS CODE: // GET api/values/5 [HttpGet("{id}")] public JsonResult Get(int id) { return new JsonResult([login to view URL](id)); } [HttpGet("{Find}")] public JsonResult Get(string searchString) { return new JsonResult([login to view URL](searchString)); } [HttpGet("{Category}")] public JsonResult Get(string category) { return new JsonResult([login to view URL]()); } As said, I´m new to Web API and I think the problem is very simple. If you know Web API this might take only 5 min to solve.
ID del proyecto: 12511737

Información sobre el proyecto

31 propuestas
Proyecto remoto
Activo hace 7 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
31 freelancers están ofertando un promedio de $59 USD por este trabajo
Avatar del usuario
Are all these methods inside same Controller? Yes I can fix this in 5 mins.......................................
$10 USD en 0 día
4,9 (103 comentarios)
7,1
7,1
Avatar del usuario
You are right thatvit would not take so much time. At the same time you would not have to award me too. Just ping me so that I can code here. When I will complete I will send you the source code and you can pay me. I think I have guven you a fair solution. If you need simple help you can tell me as I think you can solve this problem by yourself as well.
$21 USD en 1 día
5,0 (48 comentarios)
7,0
7,0
Avatar del usuario
i am a lead .Net software engineer and responsible for creating web and desktop applications using different languages and technologies if u r interested just send me a message thank you and good luck
$25 USD en 1 día
4,8 (129 comentarios)
6,9
6,9
Avatar del usuario
Hello Sir, I have gone through your requirements regarding Fix simple problem in C# Web API. we brief and understand your idea and preference for job as you are looking for. I have more than 6+ years of experience in .NET, c#.net, vb.net, asp.net, MVC, Odoo, sql, mysql, Oracle, Azure, Entity Framework, Linq, Umbraco, Telerik, Devexpress, JQuery, Angularjs, CSS, HTML, Kendo UI, RDLC Report, Crystal Report, BioMetric Integration. I have developed more than 20 projects. Please send me message for further conversation. Thanks, Arity Infoway
$34 USD en 1 día
4,9 (42 comentarios)
6,4
6,4
Avatar del usuario
A proposal has not yet been provided
$25 USD en 3 días
4,9 (35 comentarios)
6,0
6,0
Avatar del usuario
can fix it! Lets Discuss? ❤ Ultra Fast Website + Certified Developer ❤ Replicate ANY site with high Fidelity. Well versed with latest greatest in design world. Flexible, Responsive, Dedicated and Rapid Application Developement with Experience of 8+ years. The only HTML5/CSS3/JS Certified Expert around; Also In-depth knowledge: ASP.NET, MVC, C#, PHP, WordPress, MYSQL, SEO, Responsive, Minimal and Material Design Techniques. ✔ Immediate Start ✔ Deliver Results ✔ Work with Smile Don't simply trust, see my work. If you want to know more, I shall share more links. https://www.freelancer.in/u/WebColorIn.html
$30 USD en 1 día
5,0 (8 comentarios)
5,5
5,5
Avatar del usuario
Hello, Only change get method to be for example getbycategory, getbyid, getsearch Thanks Amr hafez
$10 USD en 0 día
5,0 (21 comentarios)
4,8
4,8
Avatar del usuario
public JsonResult Get(string searchString) public JsonResult Get(string category) The above 2 function may be considered as same for the WebAPI. How about commenting out 1 of the above function and see if it works. If it does, you can uncomment the code and try by changing the function name.
$10 USD en 0 día
5,0 (27 comentarios)
4,7
4,7
Avatar del usuario
hi 1. you cannot use two overload with same type parameter. Get (int id) Get(string s, int I=0) { if I = 0 s is searchword if I = 1 s is catagory // then your code and resul } when u call, pass 0 or 1 accordinglly
$25 USD en 1 día
5,0 (28 comentarios)
4,5
4,5
Avatar del usuario
Hi there - My name is Raju. I’ve read your brief and can see that you’d like to Fix Web Api issue. I have over 6 years experience of designing and developing applications for Asp.Net(MVC)/C#.Net/WPF/AngularJS/WebApi/MSSql/MySql and many more... .I will provide you quality work on time and available any time for your help(support). If you'd like to view my previous work, take a look at my Portfolio. I'm glad to answer any questions you may have! Thank you for reading my proposal. Looking forward to work with you and developing a long term business relationship. Thank you.
$10 USD en 1 día
5,0 (16 comentarios)
4,5
4,5
Avatar del usuario
Hi, I am Sumeet Shah from India. I am an experienced Software Engineer with expertise in various Dot Net Framework Technologies and Frameworks. I can solve the problem in 30 minutes. Hence, would like to have a conversation with you to discuss more. Please feel free to contact me. Awaiting your response. Thanks. Regards. EDIT: I already see the problem in your code. Let us fix it now if you are online at the moment and can spend 15-20 (Max) minutes with me.
$30 USD en 1 día
5,0 (10 comentarios)
4,1
4,1
Avatar del usuario
hi i am expert in web api. I can do this hoping for positive response. Regards Mahesh
$25 USD en 2 días
5,0 (6 comentarios)
3,5
3,5
Avatar del usuario
need 2 minutes to solve this problem
$15 USD en 0 día
5,0 (5 comentarios)
2,8
2,8
Avatar del usuario
Hi Sir, I can help you in your web Api methods , it will not take more than one hour ,can start with you immediately ,message me for more discuss . . . Regards,Sarah
$30 USD en 1 día
4,4 (9 comentarios)
3,1
3,1
Avatar del usuario
I’d like to be considered for your "Fix simple problem in C# Web API" project. I'm software engineer with more than 3 years experience in Development & Designing. I'm expert in my services and I have many more experiences in all my skills. I am pretty flexible with respect to working hours. Deadlines are sacred for me and I will review your content as many times as it takes for it to exceed your expectations! It's important to me to build long term relationships with clients, so I'm primarily looking for long term projects. I'm flexible with my working hours and I'm happy to work closely with any existing freelancers you work with. I will never ever let you down! I look forward to hearing from you....
$20 USD en 0 día
5,0 (3 comentarios)
2,1
2,1
Avatar del usuario
Your problem is you have multiple methods named "Get" receiving same type of parameters(string). All you need to do is rename them. For example you can change public JsonResult Get(string searchString) to public JsonResult GetByTopicName(string searchString) and the public JsonResult Get(string category) to public JsonResult GetByCategory(string category) this should help you.
$10 USD en 0 día
5,0 (1 comentario)
2,0
2,0
Avatar del usuario
give me acceess, i will help you to solve it and then you can pay me give me acceess, i will help you to solve it and then you can pay me
$30 USD en 1 día
5,0 (1 comentario)
1,5
1,5
Avatar del usuario
Hey man, I can help you, no money is necessary! I believe that everybody needs a hand on start. Pls, find me on gmail (andrade.an#gmail#com) and we talk about this. It's very easy to solve.
$10 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi, I'm Micaela from Argentina! I'm web developer and I want to help you with your issue. I think we can solve this very quickly!
$25 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I have 13 years of software development and enhancement expertise in Microsoft ASP.Net, MVC, C#, SharePoint, jQuery, Javascript, AJAX, HTML5, Windows Desktop Applications, SQL, MSBI (SSIS, SSRS) etc. I am really intrested in this assignment. Please connect with me on skype shekhar_pawar
$25 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de SWEDEN
Sweden, Sweden
5,0
15
Forma de pago verificada
Miembro desde ene 24, 2016

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.