public PersonalDetailsVm DetailsById(string Id) { PersonalDetails sportDetails = personalDetails.All().Where(u => u.UserId == Id).FirstOrDefault(); //AddDayMuscle fitnessProgram = dayMuscle.All().Where(u => u.UserId == Id).FirstOrDefault(); PersonalDetailsVm vm = Mapper.Instance.Map <PersonalDetails, PersonalDetailsVm>(sportDetails); return(vm); }
public IHttpActionResult SportDetails(string id) { if (!this.fitnessService.ContainsDetails(id)) { return(this.NotFound()); } PersonalDetailsVm result = fitnessService.DetailsById(id); return(this.Ok(result)); }