public string UpdateFloor(FloorModel floor) { Mapper.CreateMap <FloorModel, Floor>(); Floor fl = Mapper.Map <FloorModel, Floor>(floor); int i = flrService.EditFloor(fl); return(i.ToString()); }