moved model to another project and added post method